package com.spring.hed.factory.abstracts;

/**
 * 抽象类商品
 */
public abstract class Pizza {

    protected String name;

    /**
     * 准备材料
      */
    public abstract void prepare();

    public void bake(){
        System.out.println(name + " 烘焙");
    }

    public void cut(){
        System.out.println(name + " 切割");
    }

    public void box(){
        System.out.println(name + " 打包");
    }

    public void setName(String name) {
        this.name = name;
    }
}
